import { createRouter, createWebHistory } from "vue-router";

import Home from "../Home.vue";
import Shop from "../Shop.vue";
import NotFound from "../404.vue";

const router = createRouter({
  // mode:'history'
  history: createWebHistory(),
  routes: [
    {
      path: "/home",
      component: Home,
    },
    {
      path: "/shop",
      component: Shop,
    },
    {
      path: "/:path(\\d+)",
      component: NotFound,
    },
  ],
});

export default router;
